# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=lrdf
pkgver=0.6.1
pkgrel=2
pkgdesc="RDF library for accessing plugin metadata in the LADSPA plugin system"
url="https://github.com/swh/LRDF"
arch="all"
license="GPL-2.0-only"
makedepends="autoconf automake libtool raptor2-dev"
subpackages="$pkgname-static $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/swh/LRDF/archive/v0.6.1.tar.gz"
builddir="$srcdir/LRDF-$pkgver"
options="!check" # remove_test not working: https://github.com/swh/LRDF/issues/15

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="7732813eec704aef984d056de254e4fa049fdd0a7444b6a88f75f012afe9c587cbd1295f027c77361fa42bc097cdce9d9cabdba6b86e99a3c14805d84258df1c  lrdf-0.6.1.tar.gz"
